<?php


namespace coco\exception;


use coco\Exception;
use Throwable;

class BadMethodCallException extends Exception
{
    protected $caller;

    /**
     * BadMethodCallException constructor.
     * @param callable $caller
     */
    public function __construct($caller)
    {
        parent::__construct();
        $this->caller = $caller;
    }

    /**
     * @return mixed
     */
    public function getCaller()
    {
        return $this->caller;
    }
}